package com.dm.cloud.auth.common.po;

import com.dm.cloud.basepo.po.BasePo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;
import io.swagger.v3.oas.annotations.media.Schema;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
   * @author hcx
   * @type AuthPermission.java
   * @desc AuthPermission
   */

@Entity
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "T_AUTH_PERMISSION")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "AuthPermission")
public class AuthPermission extends BasePo {

      /** 权限名称 **/ 
      @Schema(description = "权限名称")
      @Column(name = "name")
      private String name;
      /** 权限标识 **/
      @Schema(description = "权限标识")
      @Column(name = "code")
      private String code;
      /** 应用ID **/ 
      @Schema(description = "应用标识")
      @Column(name = "app_code")
      private String appCode;
      /** 权限URL **/ 
      @Schema(description = "权限URL")
      @Column(name = "view")
      private String view;
      /** 权限节点类型:0接口 1页面菜单 2功能  **/ 
      @Schema(description = "权限节点类型:0接口 1页面菜单 2功能 10目录 ")
      @Column(name = "node_type")
      private Integer nodeType;
      /** 父级权限项ID **/ 
      @Schema(description = "父级权限项ID")
      @Column(name = "p_id")
      private String pId;
      /** 序号 **/ 
      @Schema(description = "序号")
      @Column(name = "serial")
      private Integer serial;

}
